package cn.znzz.cjm.feign;

import cn.znzz.cjm.domain.LoginUser;
import cn.znzz.cjm.dto.TenantEnteringDto;
import cn.znzz.cjm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "AUTH-SERVER",fallbackFactory = MyFallBackFactory.class)
@RequestMapping("/loginUser")
public interface FeignProviderClient {
    @PostMapping("/entering")
    @ResponseBody
    AjaxResult entering(@RequestBody LoginUser loginUser);
}
